application: Append a / to the icon resource path
authorMatthias Clasen <mclasen@redhat.com>
Mon, 13 Nov 2017 12:35:18 +0000 (07:35 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 13 Nov 2017 12:35:18 +0000 (07:35 -0500)
g_resources_enumerate_children expects the path to end
in a '/' (even though thats not stated in the docs), and
will copy it if that isn't the case. Avoid the copy
by putting  a '/' there to begin with.

gtk/gtkapplication.c

index da6712160f1879910f2d83b242dd63ffcf3867a5..f7bd5b5b09c36534d7be896da34d9502209f88d9 100644 (file)
@@ -204,7 +204,7 @@ gtk_application_load_resources (GtkApplication *application)
     gchar *iconspath;
 
     default_theme = gtk_icon_theme_get_default ();
-    iconspath = g_strconcat (base_path, "/icons", NULL);
+    iconspath = g_strconcat (base_path, "/icons/", NULL);
     gtk_icon_theme_add_resource_path (default_theme, iconspath);
     g_free (iconspath);
   }